package com.oneraku.service.utils;

/**
 * @Author: hui.ren@huberbuy.com
 * @Date: 2020/1/10 16:41
 */
public class RequestBeanUtils {
    private final static ThreadLocal<RequestBean> requestHolder = new ThreadLocal<RequestBean>();
    public static void add(RequestBean requestBean) {
        requestHolder.set(requestBean);
    }
    public static RequestBean get() {
        return requestHolder.get();
    }
    public static void remove() {
        requestHolder.remove();
    }
}
